import { postAxios, getAxios } from '@/utils/http'

export const companyApi = {
  companyList: (data) => {
    return postAxios('/company/list', data);
  },

  companyAdd: (data) => {
    return postAxios('/company/add',data);
  },

  companyUpdate: (data) => {
    return postAxios('/company/update', data);
  },

  companyDelete: (deptId) => {
    return getAxios('/company/delete',{deptId:deptId});
  },
  autoCheck: (data) => {
    return postAxios('/company/autoCheck',data);
  },
   // 获取二维码图片
   getImage: (data) => {
    return getAxios('/image/get',{file:data});
  },
  getQrCode: (data) => {
    return getAxios('/image/qrCode',{file:data});
  },
};